/**
 * 计算百分比
 */
export const calcRate = (actual: number, plan: number, decimal: number): number => {
    return Number((actual / (plan || 1) * 100 > 100 ? 100 : actual / (plan || 1) * 100).toFixed(decimal))
}